﻿@model OnlinePharmacyV001.Models.Product

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Product</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.prodId)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.prodId)
            @Html.ValidationMessageFor(model => model.prodId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.cateId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cateId)
            @Html.ValidationMessageFor(model => model.cateId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.prodName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.prodName)
            @Html.ValidationMessageFor(model => model.prodName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.prodImages)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.prodImages)
            @Html.ValidationMessageFor(model => model.prodImages)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.prodWeight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.prodWeight)
            @Html.ValidationMessageFor(model => model.prodWeight)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.prodPrice)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.prodPrice)
            @Html.ValidationMessageFor(model => model.prodPrice)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.prodDimension)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.prodDimension)
            @Html.ValidationMessageFor(model => model.prodDimension)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.prodStatus)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.prodStatus)
            @Html.ValidationMessageFor(model => model.prodStatus)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.prodShortDes)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.prodShortDes)
            @Html.ValidationMessageFor(model => model.prodShortDes)
        </div>

        <p>
            <input type="submit" value="Lưu" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

